POV-Ray : Newsgroups : povray.advanced-users : Question about normals : Re: Question about normals Server Time
29 Jul 2024 06:27:44 EDT (-0400)
  Re: Question about normals  
From: Tor Olav Kristensen
Date: 16 Nov 2002 08:25:03
Message: <web.3dd645beb3508d7038149fba0@news.povray.org>
Christopher James Huff wrote:
>In article <3dd5ac26$1[at]news.povray.org>, "Slime" <slm### [at] slimelandcom>
>wrote:
>
>> I thought, at first, that I could apply the inverse of the matrix
>> transformation to the normal, but then I realized that this wouldn't work in
>> all cases.
>
>You are correct. The answer is pretty simple: transform the normal by
>the transpose of the inverse of the transformation matrix.
>...

If the column or row vectors in his transformation
matrix forms an orthonormal basis, then the
transpose of the inverse of that transformation
matrix should be the transformation matrix itself.

I have not given transformation of normals much
thought, but I think that a consequence of the
above must be that:

As long as his transformation matrix does not scale
or shear the object in any way, he can just use this
matrix for the normals as well.


Tor Olav


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.